package com.cans.lightning.base.entity;


import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.InsertIgnore;
import org.beetl.sql.annotation.entity.UpdateIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体基类
 *
 * @author shencan
 * @date 2020/6/14 21:07
 */
public class BaseEntity implements Serializable {

    /**
     * 主键 uuid
     **/
    @AssignID("uuid")
    private String id;
    /**
     * 创建时间
     **/
    @UpdateIgnore
    private Date createTime = new Date();

    /**
     * 最后修改时间
     **/
    private Date lastChangeTime = new Date();


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getLastChangeTime() {
        return lastChangeTime;
    }

    public void setLastChangeTime(Date lastChangeTime) {
        this.lastChangeTime = lastChangeTime;
    }
}
